#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2022/1/12 11:06
# @Author  : ldh

from basic.UIParent import UIParent
from commen.page.ann.myPage import myPage
from commen.page.ann.growValuePage import growValuePage
from basic.utils.asserts import asserts
import re

class growValue(UIParent):

    @classmethod
    def test_getGrowValue(cls):
        '''会员中心可用成长值校验'''

        #判断是否登录
        myPage.loginByStatu()
        listValue=growValuePage.getListValue()
        growValuePage.openGrowValuePage()
        growValue=growValuePage.getValue()
        asserts.equal(listValue,growValue,"会员中心可用成长值校验")

    # @classmethod
    # def test_getTotalValue(cls):
    #     '''会员中心累计成长值校验'''
    #
    #     # 判断是否登录
    #     myPage.loginByStatu()
    #     growValuePage.openGrowValuePage()
    #     addgrow1 = growValuePage.getTotalValue()
    #     pattern = re.findall("\d+",addgrow1)
    #     addgrow = ''.join(pattern)
    #     asserts.true(int(addgrow) > 0, "会员中心累计成长值校验")







